package demo1;

public class Circle extends Shape{
    private double r;
    final private static double PI = 3.14;
    public Circle(double r){
        this.r = r;
    }

    public void draw(){
        System.out.println("圆:r = "+r);
    }

    public void calcArea(){
        area = PI*r*r;
    }
}
